<template>
  <div class="myHeader">
    <ul>
      <router-link to="/" tag="li" class="logo"><img src="../assets/images/logo.jpg" alt=""></router-link>
      <router-link to="singer" tag="li">歌手</router-link>
      <router-link to="/songList" tag="li">榜单</router-link>
      <router-link to="/search" tag="li">搜索</router-link>
      <router-link to="/mine" tag="li">我的</router-link>
    </ul>

  </div>
</template>

<script>
  export default {
    name: "Header"
  }
</script>

<style scoped lang="less">
  .myHeader {
    height: 50px;
    font-size: 16px;
    color: #999;
    background-color: #f9f9f9;

    ul {
      display: flex;
      flex-wrap: nowrap;
      //width: 20%;
      text-align: center;
      line-height: 50px;

      .logo {
        padding-top: 5px;
      }

      li {
        // width: calc(100% / 4);
        width: calc(100% / 5);
        height: 100%;


        img {
          width: 45%;
          border-radius: 50%;
          line-height: 50px;
        }
      }
    }
  }
  .router-link-exact-active{
    color: red;
    font-size: 17px;
  }
</style>